﻿using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace UtilTools.Structs
{
    /// <summary>
    /// CAN通道状态
    /// </summary>
    public struct CAN_STATUS
    {
        /// <summary>
        /// 中断错误记录，读操作会清除。
        /// </summary>
        public Char ErrInterrupt;
        /// <summary>
        /// CAN 模式。
        /// </summary>
        public Char regMode;
        /// <summary>
        /// CAN 状态。
        /// </summary>
        public Char regStatus;
        /// <summary>
        /// CAN 仲裁丢失。
        /// </summary>
        public Char regALCapture;
        /// <summary>
        /// CAN 错误。
        /// </summary>
        public Char regECCapture;
        /// <summary>
        /// CAN 错误警告限制。
        /// </summary>
        public Char regEWLimit;
        /// <summary>
        /// CAN 接收错误。
        /// </summary>
        public Char regRECounter;
        /// <summary>
        /// CAN 发送错误。
        /// </summary>
        public Char regTECounter;
        /// <summary>
        /// 保留。
        /// </summary>
        public Int32 Reserved;
    }
}
